<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/xz_stylesheet.css" rel="stylesheet">
</block>

<block name="script">
<script type="text/javascript" src="__JS__/banner.js"></script>
</block>

<block name="header">
<header class="auction">
	<div class="container">
		<div class="logo fl"><img src="__IMG__/idle/logo.png"></div>
		<div class="sub-nav fl">
			<ul>
	       		<li><a href="{:U('Xz/index')}" class="active">首页</a></li>
	       		<li><a href="{:U('Xz/add')}">发布闲置</a></li>
	       		<li><a href="{:U('User/xianzhi')}">我的闲置</a></li>
	       	</ul>
		</div>
		<div class="search">
			<form action="" method="post" autocomplete="off">
	            <input name="title" class="search-input" placeholder="搜索闲置商品">
	            <a href="javascript:;" class="search-btn fr">搜索</a>
            </form>
        </div>
	</div>
</header>
<div class="container">
	<div class="sub-menu fl">
		<ul>
			<volist name=":getCategoryTree()" id='vo'>
					<li>
						<a  class="title" href="{:U('Index?fid='.$vo['id'])}">{$vo.title}</a>
						<div class="sub-menu-list">
							<volist name="vo._child" id="child">
								 <a href="{:U('Index?cid='.$child['id'])}">{$child.title}</a>
					 		</volist>
						</div>
					</li>
			</volist>
		</ul>
	</div>
	<div class="banner">
   		<ul class="banner-img">
   			<volist name="adlist" id="vo">
						<li><a href="#"><img src="{$vo.image}"></a></li>
			</volist>
   		</ul>
   		<div class="banner-btn"></div>
   		<div class="banner-page">
   			<a href="javascript:;" class="prev"><</a>
   			<a href="javascript:;" class="next">></a>
   		</div>
   	</div>
</div>
</block>

<block name="body">
<div class="container main">
	<div class="col-xs-12 list">
		<div class="row">
			<h4>最新发布</h4>		
			<volist name="p_list" id="vo">
				<div class="col-xs-3 form-group product-item">
				<a href="{:U('Product/detail',array('id'=>$vo['id']))}" target="" title="{$vo.title}">
					<img src="{$vo.image}" />
					<p>{$vo.title|msubstr=0,20}</p>
					<span class="price">￥{$vo.price}.00<del>￥{$vo.price}</del></span>
				</a>
				</div>
			</volist>
		</div>
	</div>
</div>
<div class="container main">
	<div class="col-xs-12 list">
		<div class="row">
			<h4>热门推荐</h4>
			<volist name="p_list_hot" id="vo">
				<div class="col-xs-3 form-group product-item">
					<a href="{:U('Product/detail',array('id'=>$vo['id']))}" target="" title="">
						<img src="{$vo.image}" />
						<p>{$vo.title|msubstr=0,20}</p>
						<span class="price">￥{$vo.price}<del>￥{$vo.price}</del></span>
					</a>
				</div>
			</volist>
		</div>
	</div>
</div>
</block>